package ${project.group}.${project.name}.vehicle;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.View;

import com.chenenyu.router.Router;
import com.chenenyu.router.annotation.InjectParam;
import com.chenenyu.router.annotation.Route;
import ${project.group}.${project.name}.R;
import ${project.group}.${project.name}.base.AppBaseActivity;

/**
 * VehicleActivity
 *
 * @author Charles
 */
@Route(value = "VehicleActivity", interceptors = "Login")
public class VehicleActivity extends AppBaseActivity {
    @Override
    protected void onSetup(Bundle savedInstanceState) {
        this.showToolbar = true;
        super.onSetup(savedInstanceState);
        Router.injectParams(this);
        toolbar.setTitleMainText("车辆列表").setRightTextDrawable(R.mipmap.ic_upload)
                .setOnRightTextClickListener(view1 -> Router.build("VehicleAdd")
                        .go(this));
        replaceFragment((Fragment) Router.build("VehicleListFragment").getFragment(this));
    }

}
